
<div class="content-table">
    <nav>
        <div class="box">
            <%if(type==2){%>
                <div class="keep" data-tab="1">购买记录</div>
                <div class="" data-tab="2">出售记录</div>
            <%}else{%>
                <div class="" data-tab="1">购买记录</div>
                <div class="keep" data-tab="2">出售记录</div>
            <%}%>


        </div>
    </nav>
    <div class="deal-table-div">
        <div style="overflow-y: auto;height: 100%;">
        <table class="deal-table">
            <thead>
            <tr>
                <th>
                    <%if(type==2){%>
                        出售人
                    <%}else{%>
                        购买人
                    <%}%>
                </th>
                <th>数量</th>
                <th>类型</th>
                <th>时间</th>
                <th>状态</th>
            </tr>
            </thead>
            <tbody>
            <%_.each(data.recordList,function(item,index){%>
            <tr>
                <td>
                    <%=item['loginName']%>
                </td>
                <td>
                    <%=item['giftNum']%>
                </td>
                <td>
                    <%if(item['giftType']==1 || item['giftType']==5){%>
                        小鸡
                    <%}else{%>
                        鸡蛋
                    <%}%>
                </td>
                <td>
                    <%=item['daily']%>
                </td>
                <td>
                    <%if(item['status']==1){%>
                        交易完成
                    <%}else if(item['status']==0){%>
                        <%if(type==2){%>
                            <button data-id="<%=item['id']%>" class="btn_receiveConfirm">确认付款</button>
                        <%}else{%>
                            <spam>等待付款</spam>
                        <%}%>

                    <%} if(item['status']==2){%>
                        <%if(type==1){%>
                            <button data-id="<%=item['id']%>" class="btn_sendConfirm">确认收款</button>
                        <%}else{%>
                            <spam>等待收款</spam>
                        <%}%>
                    <%}%>

                </td>
            </tr>
            <%})%>
            </tbody>
        </table>
        </div>
    </div>

</div>
<div class="flip">
    <button class="upper">　</button><span class="number"><%=data.currentPage||1%>/<%=data.pageCount||1%></span><button class="lower">　</button>
</div>